set(LIB_NAME libemb)

add_library(${LIB_NAME}
    ArgUtil.cpp
    Base64.cpp
    BaseType.cpp
    CheckUtil.cpp
    ComUtil.cpp
    Coroutine.cpp
    CppUnitLite.cpp
    DataBuffer.cpp
    DateTime.cpp
    FileUtil.cpp
    FSMachine.cpp
    IODevice.cpp
    Logger.cpp
    MathUtil.cpp
    MemUtil.cpp
    MsgQueue.cpp
    NetUtil.cpp
    Pollset.cpp
    Pluglet.cpp
    ProcUtil.cpp
    RegExp.cpp
    SerialPort.cpp
    Socket.cpp
    StrUtil.cpp
    Thread.cpp
    ThreadUtil.cpp
    Timer.cpp
    Tracer.cpp
)

target_link_libraries(${LIB_NAME}
    ${catkin_LIBRARIES}
    uuid
)

install(DIRECTORY .
   DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
   FILES_MATCHING PATTERN "*.h"
   PATTERN ".svn" EXCLUDE
)

install(TARGETS ${LIB_NAME}
    DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
#   LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
#   RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)
